2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11 * Public License for more details.
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 @
class AIListObject
, AIListOutlineView
;
19 @interface AIListCell
: NSCell
{
20 AIListOutlineView
*controlView
;
21 AIListObject
*listObject
;
24 NSTextAlignment textAlignment
;
38 NSColor
*invertedTextColor
;
42 BOOL useAliasesAsRequested
;
45 - (void)setListObject
:(AIListObject
*)inObject
;
47 - (void)setControlView
:(AIListOutlineView
*)inControlView
;
50 - (void)setFont
:(NSFont
*)inFont
;
52 - (void)setTextAlignment
:(NSTextAlignment
)inAlignment
;
53 - (NSTextAlignment
)textAlignment
;
54 - (void)setTextColor
:(NSColor
*)inColor
;
55 - (NSColor
*)textColor
;
56 - (void)setInvertedTextColor
:(NSColor
*)inColor
;
57 - (NSColor
*)invertedTextColor
;
59 //Cell sizing and padding
62 - (void)setSplitVerticalSpacing
:(int)inSpacing
;
63 - (void)setTopSpacing
:(int)inSpacing
;
65 - (void)setBottomSpacing
:(int)inSpacing
;
67 - (void)setLeftSpacing
:(int)inSpacing
;
69 - (void)setRightSpacing
:(int)inSpacing
;
71 - (void)setSplitVerticalPadding
:(int)inPadding
;
72 - (void)setTopPadding
:(int)inPadding
;
73 - (void)setBottomPadding
:(int)inPadding
;
76 - (void)setLeftPadding
:(int)inPadding
;
78 - (void)setRightPadding
:(int)inPadding
;
82 - (void)drawWithFrame
:(NSRect
)cellFrame inView
:(NSView
*)controlView
;
83 - (void)drawInteriorWithFrame
:(NSRect
)cellFrame inView
:(NSView
*)controlView
;
84 - (void)_drawHighlightWithFrame
:(NSRect
)cellFrame inView
:(NSView
*)controlView
;
85 - (void)drawSelectionWithFrame
:(NSRect
)rect
;
86 - (void)drawBackgroundWithFrame
:(NSRect
)rect
;
87 - (void)drawContentWithFrame
:(NSRect
)rect
;
88 - (NSRect
)drawDisplayNameWithFrame
:(NSRect
)inRect
;
89 - (NSString
*)labelString
;
90 - (NSDictionary
*)labelAttributes
;
91 - (NSDictionary
*)additionalLabelAttributes
;
92 - (NSColor
*)textColor
;
93 - (BOOL
)cellIsSelected
;
94 - (BOOL
)drawGridBehindCell
;
95 - (NSColor
*)backgroundColor
;
97 //Control over whether the cell will respect aliases and long display names
98 - (void)setUseAliasesAsRequested
:(BOOL
)flag
;